import os
import sys
import unittest
import XMLTestRunner

def Suite():
    import EntitiesTest.Test
    return unittest.TestSuite \
        (
        [
        EntitiesTest.Test.Suite()
        ]
        )

root = None
    
def XMLTest (r, fname):
    global root
    root = r
    fp = file(fname, 'w+')
    runner = XMLTestRunner.XMLTestRunner(fp)
    runner.run (Suite())
    
def main(argv=sys.argv):
    XMLTest  (argv[1],argv[2])
    
if __name__ == "__main__":
    sys.path.append (os.getcwd() + '\\asdasd')
    for p in sys.path:
        print p
    main()